Qaq is the most difficult question to write so many simulation questions.
Good God, so I made up and checked the set ..
And the query set is very god ......
Orz
Type and query set... Orz
To maintain the SAT, we can think like this:
If the XOR values
The two values that participate in the operation, if the two corresponding bit bits are the same, the result is 0, otherwise 1.That0^0 = 0,1^0 = 1,0^1 = 1,1^1 = 03 Features of bitwise XOR:(1) 0^0=0,0^1=1 0 xor or any number = any number(2) 1^0=1,1^1=
Http://www.cnblogs.com/this-543273659/archive/2011/08/30/2159819.htmlThe two values that participate in the operation, if the two corresponding bit bits are the same, the result is 0, otherwise 1.That0^0 = 0,1^0 = 1,0^1 = 1,1^1 = 03 Features of
Bitwise -AND Operator (&)
Participate in the operation of the two data, press bits for "and" operation.
Arithmetic Rules:0&0=0; 0&1=0; 1&0=0; 1&1=1;
That is, the two-bit is "1" at the same time, the result is "1", otherwise 0
For example: 3&5
Basic knowledge:
1. And (&) Operations (bitwise AND)The and operation is usually used for bitwise operations. For example, the result of a number and 1 is the last bit of the binary. This can be used to judge the parity of an integer. the last bit
due to contact with the lower level of data processing to the following use of finishing (reference network)bit arithmeticThe Operation component of a bitwise operation can only be integer or character data, and the bitwise operation considers the
bit arithmeticThe operation component of a bitwise operation can only be integer or character data, and the bitwise operation considers the operand as a bit string information composed of binary bits, and completes the specified operation by bit,
In-depth understanding of bitwise XOR Operators
The two values involved in the operation. If the two bits are the same, the result is 0. Otherwise, the result is 1.That is:0 ^ 0 = 0,1 ^ 0 = 1,0 ^ 1 = 1,1 ^ 1 = 0Three Characteristics of bitwise XOR:(
The bitwise "XOR" Operator (^) is used to perform bitwise XOR for two expressions. The following describes how to use it.The bitwise "XOR" Operator (^) performs bitwise XOR on two expressions. Usage: the code is as follows: result = expression1 ^
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.